package com.lyl.label.model.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 标签组表(LabelGroup)表实体类
 *
 * @author makejava
 * @since 2022-06-20 21:21:40
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("label_group")
public class LabelGroup implements Serializable  {
    private static final long serialVersionUID = 940568417580875728L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父节点ID
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 标签组名称
     */
    @TableField("group_name")
    private String groupName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("modify_time")
    private Date modifyTime;

    /**
     * 创建人ID
     */
    @TableField("creater_id")
    private Long createrId;

    /**
     * 删除标识
     */
    @TableField("delete_mark")
    @TableLogic
    private Boolean deleteMark;


    @TableField("label_type")
    private Long labelType;

    /**
     * 标签等级
     */
    @TableField("label_grade")
    private Integer labelGrade;

    /**
     * 关键字
     */
    @TableField("keyword")
    private String keyword;

}
